package com.crm.miaohe.service;

import com.crm.miaohe.controller.PageResponse;
import com.crm.miaohe.controller.customer.request.CustomerBatchUpdateParams;
import com.crm.miaohe.controller.customer.request.CustomerParams;
import com.crm.miaohe.controller.customer.request.CustomerQueryParams;
import com.crm.miaohe.model.TblCustomer;

import java.util.List;

public interface CustomerService {
    void addCustomer(CustomerParams params);
    void updateCustomer(CustomerParams params);
    Object batchUpdateCustomer(CustomerBatchUpdateParams params);
    void approvedCustomer(Long id);
    void updatePassword(CustomerParams customerParams);
    void lockCustomer(Long id);
    void updateDeposit(Long id, Double amount);
    void unlockCustomer(Long id);
    void deleteCustomer(Long id);
    boolean checkPhoneNumber(CustomerParams customerParams);
    boolean checkUserName(CustomerParams customerParams);
    TblCustomer currentUser(String username);
    PageResponse<TblCustomer> getCustomers(CustomerQueryParams params);
    //获取已经审核过的会员
    List<TblCustomer> getApprovedCustomers();

}
